/*
 * Created on Feb 25, 2005
 */
package com.scalar.chiptrack.finance.openpo;

import java.text.DecimalFormat;

/**
 * @author Ravikanth
**/
public class ReceivingLineItem
{
	private int recevingLineItem_Id = -1;
	private int purchaseOrderLineItem_Id = -1;
	private int purchaseOrderLineItemNumber;
	private String processName;
	private String partNumber;
	private int processStepId;
	private String description;
	private String packageType;
	private String requestedDate;
	private String receivedDate;
	private long requestedQuantity;
	private long previouslyShipppedQty;
	private long shippedQty;
	private long Invoiced_Qty;
	private double unitCost;
	private double extendedCost;
	private boolean selected;
	private PurchaseOrderLineItemLotDataEntryList purchaseOrderLineItemLotDataEntryList;

    // holds the shippedQty
    private long orgShippedQty;

	/**
	 * @return
	 */
	public String getDescription()
	{
		return description;
	}

	/**
	 * @return
	 */
	public double getExtendedCost()
	{
		return extendedCost;
	}

    public String getExtendedCostAsString()
    {
        DecimalFormat formatter = new DecimalFormat("0.00");
        String output = formatter.format( extendedCost);
        return output;
    }


	/**
	 * @return
	 */
	public long getInvoiced_Qty()
	{
		return Invoiced_Qty;
	}

	/**
	 * @return
	 */
	public String getPackageType()
	{
		return packageType;
	}

	/**
	 * @return
	 */
	public String getPartNumber()
	{
		return partNumber;
	}

	/**
	 * @return
	 */
	public long getPreviouslyShipppedQty()
	{
		return previouslyShipppedQty;
	}

	/**
	 * @return
	 */
	public String getProcessName()
	{
		return processName;
	}

	/**
	 * @return
	 */
	public int getProcessStepId()
	{
		return processStepId;
	}

	/**
	 * @return
	 */
	public int getPurchaseOrderLineItem_Id()
	{
		return purchaseOrderLineItem_Id;
	}

	/**
	 * @return
	 */
	public int getPurchaseOrderLineItemNumber()
	{
		return purchaseOrderLineItemNumber;
	}

	/**
	 * @return
	 */
	public String getReceivedDate()
	{
		return receivedDate;
	}

	/**
	 * @return
	 */
	public int getRecevingLineItem_Id()
	{
		return recevingLineItem_Id;
	}

	/**
	 * @return
	 */
	public String getRequestedDate()
	{
		return requestedDate;
	}

	/**
	 * @return
	 */
	public long getRequestedQuantity()
	{
		return requestedQuantity;
	}

	/**
	 * @return
	 */
	public boolean isSelected()
	{
		return selected;
	}

	/**
	 * @return
	 */
	public long getShippedQty()
	{
		return shippedQty;
	}

	/**
	 * @return
	 */
	public double getUnitCost()
	{
		return unitCost;
	}

    public long getOrgShippedQty() {
        return orgShippedQty;
    }



	/**
	 * @param string
	 */
	public void setDescription(String string)
	{
		description = string;
	}

	/**
	 * @param d
	 */
	public void setExtendedCost(double d)
	{
		extendedCost = d;
	}

	/**
	 * @param l
	 */
	public void setInvoiced_Qty(long l)
	{
		Invoiced_Qty = l;
	}

	/**
	 * @param string
	 */
	public void setPackageType(String string)
	{
		packageType = string;
	}

	/**
	 * @param string
	 */
	public void setPartNumber(String string)
	{
		partNumber = string;
	}

	/**
	 * @param l
	 */
	public void setPreviouslyShipppedQty(long l)
	{
		previouslyShipppedQty = l;
	}

	/**
	 * @param string
	 */
	public void setProcessName(String string)
	{
		processName = string;
	}

	/**
	 * @param i
	 */
	public void setProcessStepId(int i)
	{
		processStepId = i;
	}

	/**
	 * @param i
	 */
	public void setPurchaseOrderLineItem_Id(int i)
	{
		purchaseOrderLineItem_Id = i;
	}

	/**
	 * @param i
	 */
	public void setPurchaseOrderLineItemNumber(int i)
	{
		purchaseOrderLineItemNumber = i;
	}

	/**
	 * @param string
	 */
	public void setReceivedDate(String string)
	{
		receivedDate = string;
	}

	/**
	 * @param i
	 */
	public void setRecevingLineItem_Id(int i)
	{
		recevingLineItem_Id = i;
	}

	/**
	 * @param string
	 */
	public void setRequestedDate(String string)
	{
		requestedDate = string;
	}

	/**
	 * @param l
	 */
	public void setRequestedQuantity(long l)
	{
		requestedQuantity = l;
	}

	/**
	 * @param b
	 */
	public void setSelected(boolean b)
	{
		selected = b;
	}

	/**
	 * @param l
	 */
	public void setShippedQty(long l)
	{
		shippedQty = l;
	}

	/**
	 * @param d
	 */
	public void setUnitCost(double d)
	{
		unitCost = d;
	}

	/**
	 * @return
	 */
	public PurchaseOrderLineItemLotDataEntryList getPurchaseOrderLineItemLotDataEntryList()
	{
		return purchaseOrderLineItemLotDataEntryList;
	}

	/**
	 * @param list
	 */
	public void setPurchaseOrderLineItemLotDataEntryList(PurchaseOrderLineItemLotDataEntryList list)
	{
		purchaseOrderLineItemLotDataEntryList = list;
	}

    public void setOrgShippedQty(long orgShippedQty) {
        this.orgShippedQty = orgShippedQty;
    }


}
